home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / unix / intro.doc next >
Text File  |  1992-09-22  |  2KB  |  45 lines

  1. A quick guide to programs compiled with the unix library
  2. --------------------------------------------------------
  3.  
  4. If you are using programs compiled with my unix library, you should note
  5. the following points:
  6.  
  7. a) The following environment variables are taken into account by the unix library,
  8. and therefore by any program compiled with it:
  9.  
  10. USER - A user name for the sole Amiga user (default "user").
  11. USERNAME - The full name of the sole Amiga user (default $USER).
  12. HOME - A "home" directory (default "s:") for programs that want one. Configuration
  13.        files will probably end up here ...
  14. SHELL - A program which behaves reasonably like a Unix shell (default "bin:sh").
  15.     You should copy the sh executable there if you don't have a Unix-like shell.
  16. HOSTNAME - The name of your machine (default "amiga").
  17.  
  18. b) Command line parsing is a mixture of AmigaDOS and Unix conventions (this
  19. explanation assumes familiarity with Unix terminology ...) :
  20.  
  21. - Arguments in single quotes (') are left as is.
  22.  
  23. - Within arguments in double quotes ("), * acts as an escape character. Arguments
  24. cotaining wildcards are expanded into several arguments (note that this is a
  25. different from the Unix behaviour). ' must be used to escape wildcards (this is the
  26. standard AmigaDOS convention).
  27.  
  28. - Within unquoted arguments, \ acts as an escape character for wildcards, spaces, 
  29. etc. Arguments containing wildcards are expanded into several arguments.
  30.  
  31. As an example, assume that uecho is an unix-like echo command compiled with the
  32. unix library, and that the current directory contains one file, echo.c. Then
  33.  
  34.   uecho 'f*un\' "#?.c" "*.c" "\mad" \*.c \\ \n
  35.  
  36. displays
  37.  
  38.   f*un\ echo.c .c \mad *.c \ n
  39.  
  40. c) Timezones. If you install the timezone information (provided with the
  41. unix library), you must set your system clock to GMT. Otherwise the times
  42. displayed or set by the unix library will be incorrect. To compensate, you
  43. won't have to adjust your system clock for daylight savings time (the local
  44. time calculated from GMT will always be correct).
  45.